package com.bop.dehong.http.model;

import java.lang.reflect.Type;

import android.app.Activity;

import com.base.dehong.http.HttpRequest;
import com.base.dehong.http.RequestCallBack;
import com.bop.dehong.config.Config;
import com.bop.dehong.info.EmptyInfo;
import com.google.gson.reflect.TypeToken;

/**
 * @author Tangwenhan
 *2015-11-19下午12:00:28
 */
public class RechagerModel extends HttpRequest<EmptyInfo>{

	public RechagerModel(Activity activity, RequestCallBack<EmptyInfo> callback) {
		super(activity, callback);
		// TODO Auto-generated constructor stub
	}
	public void doNet(String money,String uid) {
		mPostValues.put("a", "injectadd");
		mPostValues.put("m", "User");
		mPostValues.put("money", money);
		mPostValues.put("uid", uid);
		requestByGet();
	}

	@Override
	public String getURL() {
		return Config.getIP() + Config.rechager;
	}

	@Override
	public Type getType() {
		return new TypeToken<EmptyInfo>() {}.getType();
	}
	@Override
	public Class<EmptyInfo> getClazz()
	{
		return EmptyInfo.class;
	}

}

